<f:view xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions"
        xmlns:g="http://code.google.com/p/ada-ado/generator"
        xmlns:f="http://java.sun.com/jsf/core"
        file="config/#{moduleName}.xml"><![CDATA[
  <auth-permission>
    <name>#{entityName}-create</name>
  </auth-permission>
#{''}
  <entity-permission>
    <name>#{entityName}-update</name>
    <entity-type>#{entityName}</entity-type>
    <sql>
       SELECT acl.id FROM awa_acl AS acl
       WHERE acl.entity_type = :entity_type
       AND acl.user_id = :user_id
    </sql>
  </entity-permission>
#{''}
  <entity-permission>
    <name>#{entityName}-delete</name>
    <entity-type>#{entityName}</entity-type>
    <sql>
       SELECT acl.id FROM awa_acl AS acl
       WHERE acl.entity_type = :entity_type
       AND acl.user_id = :user_id
    </sql>
  </entity-permission>
#{''}
]]></f:view>

